package com.pxye.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @Title: User
 * @Mail: yepx2013@gmail.com
 * @Author: Yepx
 * @Description: 实体类
 */
public class User {
	private Integer id;
	/**
	 * 不返回
	 * serialize 是否序列化
	 */
	@JSONField(serialize=false)
	private String name;
	
	@JSONField(format="yyyy-MM-dd HH:mm")
	private Date date;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", date=" + date + "]";
	}
}
